package com.linked.store.thing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linked.store.thing.bean.param.AddThingParam;
import com.linked.store.thing.bean.param.ThingPageParam;
import com.linked.store.thing.bean.po.ThingImagesPO;
import com.linked.store.thing.bean.vo.ThingInfoVO;
import com.linked.store.thing.bean.vo.ThingPageVO;

import java.util.List;

/**
 * @author :dbq
 * @date : 2023/3/17 14:02
 * @description : desc
 */
public interface IThingHandleService {
    boolean addThingInfo(AddThingParam param) throws Exception;

    List<ThingInfoVO> queryThingListByBoxId(String boxId) throws Exception;

    boolean uploadThingImage(ThingImagesPO thingImages) throws Exception;

    IPage<ThingPageVO> queryThingPage(ThingPageParam param);

    boolean reduceInventory(String goodsVersionId, int goodsCount)throws Exception;

    Integer findThingsCount(String goodsVersionId);
}
